@import 'common';

body {
  margin-top: 60px;
}
.question-page-container {
  width: 800px;
  min-width: 800px;
  margin: 0 auto;
  margin-top: 80px;
  margin-bottom: 40px;
  .top-container {
    margin: 10px 0;
    padding: 20px;
    box-sizing: border-box;
    .author-container {
      .image-wrapper {
        display: inline-block;
        width: 40px;
        height: 40px;
        vertical-align: middle;
        margin-right: 20px;
        img {
          border-radius: 50%;
          border: 2px solid map-get($defaultColor, baseColor);
        }
      }
      .time,
      .author-name {
        font-size: 14px;
        vertical-align: middle;
        color: #000;
      }
      .time {
        color: map-get($defaultColor, c1);
        margin-left: 20px;
      }
    }
    .post-answer {
      text-align: right;
    }
    .top-content {
      line-height: 2em;
      font-size: 20px;
      .question-title {
        font-size: 25px;
      }
    }
  }
  .no-answer {
    height: 60px;
    line-height: 60px;
    font-size: 18px;
    color: #000;
    text-align: center;
  }
  .line {
    margin: 30px 0 20px;
    width: 100%;
    height: 1px;
    background-color: map-get($defaultColor, backgroundColor);
  }
  .show-more {
    height: 60px;
    line-height: 60px;
    background-color: #fff;
    font-size: 18px;
    text-align: center;
    &:hover {
      color: map-get($defaultColor, baseColor);
      cursor: pointer;
    }
  }
  .write-answer {
    font-size: 18px;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
    .rdw-editor-toolbar {
      display: flex;
      border: 0;
    }
    .editor {
      min-height: 200px;
    }
    .btn {
      position: absolute;
      z-index: 1;
      bottom: 20px;
      right: 20px;
    }
  }
  #editor {
    .rdw-option-wrapper {
      height: 100%;
    }
    .rdw-colorpicker-modal-options .rdw-option-wrapper {
      height: auto;
    }
  }
}
.btn {
  display: inline-block;
  background-color: map-get($defaultColor, baseColor);
  color: #fff;
  padding: 5px 8px;
  font-size: 16px;
  border-radius: 2px;
  &:hover {
    cursor: pointer;
    background-color: map-get($activeColor, baseColor)
  }
}